package cn.autoOffice.service.impl;
/*
 *功能说明：公考管理服务实现层
 *@author 皮永浪
 *@Date 2023/3/27 11:30
 */

import cn.autoOffice.bean.pojo.BulletinManagement;
import cn.autoOffice.mapper.BulletinManagementMapper;
import cn.autoOffice.service.BulletinManagementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BulletinManagementServiceImpl implements BulletinManagementService {

    @Autowired
    private BulletinManagementMapper bulletinManagementMapper;

    public List<BulletinManagement> selectBulletinManagement(String nameOfAnnouncement) {
        return bulletinManagementMapper.selectBulletinManagement(nameOfAnnouncement);
    }
    public int addBulletinManagement(BulletinManagement bulletinManagement) {
        return bulletinManagementMapper.addBulletinManagement(bulletinManagement);
    }
    public int deleteBulletinManagement(int id) {
        return bulletinManagementMapper.deleteBulletinManagement(id);
    }

}
